luci-app-statistics: remove rrd path triple escape
authorPhilip L. McMahon <[email protected]>
Mon, 17 Aug 2020 06:29:01 +0000 (23:29 -0700)
committerPhilip L. McMahon <[email protected]>
Mon, 17 Aug 2020 06:57:34 +0000 (23:57 -0700)
Fixes rendering errors when RRD file names contain IPv6 addresses and the
colon (":") characters are triple escaped.

Adapts the Lua-specific fix in #4340 to Javascript.

Signed-off-by: Philip L. McMahon <[email protected]>
applications/luci-app-statistics/htdocs/luci-static/resources/statistics/rrdtool.js

index 092dd45522a368a25a755b51e4c80071d5efa467..a0b3fd2c1a47fee0147ddae4864ca5272cef574c 100644 (file)
@@ -376,7 +376,7 @@ return baseclass.extend({
 
                function __def(source) {
                        var inst = source.sname,
-                           rrd  = source.rrd.replace(/[\\:]/g, '\\$&'),
+                           rrd  = source.rrd,
                            ds   = source.ds || 'value';
 
                        _args.push(